package com.evil.file.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件下载历史表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_file_download_history")
public class FileDownloadHistory implements Serializable {

    /**
     * id
     */
    @TableId(value = "download_history_id", type = IdType.AUTO)
    private Long downloadHistoryId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 文件id
     */
    @TableField(value = "file_id")
    private Long fileId;

    /**
     * 当次下载密钥
     */
    @TableField(value = "download_key")
    private String downloadKey;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 操作ip
     */
    @TableField(value = "client_ip")
    private String clientIp;

    /**
     * 服务id
     */
    @TableField(value = "service_id")
    private String serviceId;

    /**
     * 服务器host
     */
    @TableField(value = "server_host")
    private String serverHost;

    /**
     * 服务器ip
     */
    @TableField(value = "server_ip")
    private String serverIp;

    /**
     * 系统环境
     */
    @TableField(value = "env")
    private String env;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_DOWNLOAD_HISTORY_ID = "download_history_id";

    public static final String COL_ENTERPRISE_ID = "enterprise_id";

    public static final String COL_FILE_ID = "file_id";

    public static final String COL_DOWNLOAD_KEY = "download_key";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_CLIENT_IP = "client_ip";

    public static final String COL_SERVICE_ID = "service_id";

    public static final String COL_SERVER_HOST = "server_host";

    public static final String COL_SERVER_IP = "server_ip";

    public static final String COL_ENV = "env";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}